// components/artwork-item/artwork-item.ts
interface GalleryData {
  avatar: string,
  imgUrl: string,
  like: number,
  star: number,
  title: string,
  username: string
}
const starMap = {
  attitude: 0,
  creative: 1,
  painting: 2,
  thinking: 3,
}
Component({
  /**
   * 组件的属性列表
   */
  properties: {
    galleryItem: {
      type: Object,
      value: {}
    }
  },

  /**
   * 组件的初始数据
   */
  data: {
    starMap: starMap,
  },

  /**
   * 组件的方法列表
   */
  methods: {
    goToDetail() {
      this.triggerEvent("detail");
    }
  }
})